<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function show(){
				var _aid=aid.value;
				// console.log(_aid);
				var xhr=new XMLHttpRequest();
				xhr.open("delete",`/order/v1/order_del/${_aid}`,true);
				xhr.send();
				xhr.onreadystatechange=function(){
					// console.log(1);
					if(xhr.readyState==4 && xhr.status==200){
						var r=xhr.responseText;
						if(r==1){
							d1.innerHTML="删除成功"
						}else{
							d1.innerHTML="删除失败"
						}
					}
				}
			}
		</script>
	</head>
	<body>
		<input type="text" id="aid">编号<br>
		<button onclick="show()">删除</button>
		<div id="d1"></div>
	</body>
</html>
